package dfsketches.gr3d;

import dfsketches.visualizer_2d.ColorSolver;

public class WaterColorSolver implements ColorSolver {

	@Override
	public int getColor(int value) {
		if (value < -128) {
			value = -255 & 0x000000FF;
		} else if (value < 128) {
			value = (value + 128) * 0x00000001;
		} else {
			value = 0x000000FF;
		}
		return value | 0xFF000000;
	}

}
